package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.org.domain.Department;
import cn.itsource.org.domain.Employee;
import cn.itsource.shop.domain.Shop;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_pet")
public class Pet extends BaseDomain {
    private Long adoptId;
    private String name;
    private String resources;
    private Double saleprice;
    private Date offsaletime;
    private Date onsaletime;
    private Long state = 0L;
    private Double price;
    private String age;
    private Date createTime = new Date();
    private Long typeId;
    private Long shopId;
    private Long userId;
    private Double costprice;
    private String resourceType;

    @Transient
    private String shopName;

    @Transient
    private String typeName;
    @Transient
    private String adoptNotice;
    @Transient
    private String intro;

    @Transient
    private PetDetail detail;

    @Transient
    private Shop shop;

}
